﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Linq.Expressions;
using GrayParrot.Web.Controls;

namespace $rootnamespace$
{
    public class $safeitemrootname$ : FilterBase</*<!-- PUT HERE THE TYPE OF OBJECT YOU WANT TO FILTER -->*/>, IFilterBase
    {
        //<!-- PUT HERE THE PROPERTIES YOU WANT TO EXPOSE TO MANAGE FILTERS --> 
        
        public $safeitemrootname$()
        {

        }

        public override Expression<Func</*<!-- PUT HERE THE TYPE OF OBJECT YOU WANT TO FILTER -->*/, bool>> SetUpFilter()
        {
            var predicate = PredicateBuilder.True</*<!-- PUT HERE THE TYPE OF OBJECT YOU WANT TO FILTER -->*/>();

            if (this.UseDates)
            {
                // aggiungi al filtro il controllo sulla data...
            }

            return predicate;
        }
    }
}
